package znet

import (
	"zinxLearn/pkg/zinx/ziface"
)

type BaseRouter struct{}

func (br *BaseRouter) PreHandle(_ ziface.IRequest) {
	println("[request.handler] PreHandle .....")
}
func (br *BaseRouter) Handle(req ziface.IRequest) {
	if err := req.ZConn().SendMsg(req.ZData()); err != nil { // 默认逻辑写入 client
		println(err.Error())
	}
}
func (br *BaseRouter) PostHandle(_ ziface.IRequest) {
	println("[request.handler] PostHandle .....")
}
